package com.woniuxy.microfundservice.service;

import com.woniuxy.bean.BillBean;
import com.woniuxy.bean.ResultBean;
import com.woniuxy.bean.regularbean.MemberAccountOutBean;
import com.woniuxy.microfundservice.bean.MemberFundAccount;
import com.woniuxy.microfundservice.bean.info.FundFullInfo;

import java.util.List;

/**
 * (MemberFundAccount)表服务接口
 *
 * @author makejava
 * @since 2021-04-12 19:11:45
 */
public interface MemberFundAccountService {

    MemberAccountOutBean selectByUser(String userName);

    int addOne(BillBean billBean);

    MemberFundAccount selectExit(String memberAccount, Integer fundId);

    int increase(BillBean billBean);

    int updateBySell(MemberFundAccount memberFundAccount);

    List<BillBean> selectorder(String memberAccount, int fundId);

    Double rate(String memberAccount,int fundId,double share);

    void creatOrder(BillBean billBean,String orderType);

    void updateDaily(FundFullInfo newInfos);

//    String payThen(MemberFundAccount memberFundAccount);

//    String sellThen(MemberFundAccount memberFundAccount);

    ResultBean sureOrderDate(BillBean billBean);

    ResultBean sureSellDate(BillBean billBean);

    void workDayPurchase();

    void workDaySell();

    void getMoney();
}